home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 September / maximum-cd-2000-09.iso / Vampire the Masquerade / vampire_demo.exe / Codex.nob / PointSound.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-22  |  1.1 KB  |  23 lines

  1. public class PointSound extends Codex {
  2.    private String _soundName;
  3.    private float _minDist;
  4.    private float _maxDist;
  5.    private int _volume;
  6.    private int _pan;
  7.    private int _flags;
  8.    public static String[] _params = new String[]{"Sound name", "Min Distance;300", "MaxDistance;600", "Volume;75", "Pan;0", "Flags;0"};
  9.  
  10.    public PointSound(String soundName, float minDist, float maxDist, int volume, int pan, int flags) {
  11.       this._soundName = soundName;
  12.       this._minDist = minDist;
  13.       this._maxDist = maxDist;
  14.       this._volume = volume;
  15.       this._pan = pan;
  16.       this._flags = flags;
  17.    }
  18.  
  19.    public void beginscene(int clientGuid, int captureID) {
  20.       new CodexSound(this._soundName, this._minDist, this._maxDist, this._volume, this._pan, this._flags, ((Codex)this).GetClassThing());
  21.    }
  22. }
  23.